package org.yellow.backend.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yellow.backend.mapper.medicaltestMapper;
import org.yellow.backend.pojo.medicaltest;

/**
 * @author: hy
 * @create: 2024-01-01
 */
@Service
@SuppressWarnings({"all"})
public class medicaltestService {
    @Autowired
    medicaltestMapper mapper;

    /**
     * 根据id查询患者检验申请单
     * @param id
     * @return
     */
    public medicaltest selectMedicaltestById(int id){
        return mapper.selectById(id);
    }

    /**
     * 插入新的检验申请单
     * @param test
     * @return
     */
    public boolean insertNewTest(medicaltest test){
        System.out.println("test====>"+test);
        mapper.insert(test);
        return true;

    }
}
